{extend name="public:_base" /}
{block name="js"}
{load href="__STATIC__/admin/hui/lib/My97DatePicker/4.8/WdatePicker.js" /}
{include file="public/_validform"}

<script type="text/javascript">
    $("[name='cid']").find("[value='{$Think.get.cid ?? ''}']").attr("selected", true);

</script>
{/block}
{block name="main"}


<div class="page-container">

    <form name="" method="get" action="">
        <div class="text-c mb-10">
            <input type="text" name="title" placeholder="名称" style="width:250px" value="{$Think.get.title}" class="input-text">
            <button name="" class="btn radius btn-success" type="submit"><i class="Hui-iconfont"></i> 搜咨询</button>
        </div>
    </form>
    <form name="" method="post" action="{:\\think\\Url::build(\'dolistsave\')}" id="form">

    <div class="cl pd-5 bg-1 bk-gray">
        {include file="public:_edittitle"}
        <span class="r">共有数据：<strong>{$num}</strong> 条</span>
    </div>

    <div class="mt-10">
        <table class="layui-table">
            <thead>
            <tr class="text-c">
                <th width="20"><input name="" type="checkbox" value=""></th>
                <th width="40" >{:sort_by('ID','id')}</th>
                <th >名称</th>
                <th width="40">{:sort_by('排序','sort')}</th>
                <!-- <th width="100">图片</th> -->
                <th width="100">链接</th>
                <th width="40">{:sort_by('状态','status')}</th>
                <th width="100" class="hidden-xs">{:sort_by('创建时间','create_time')}</th>
                <th width="120">操作</th>
            </tr>
            </thead>
            <tbody>
            {volist name="list" id="vo" empty="$_html_empty"}
                <tr class="text-c va-m">
                    <td><input name="id[]" type="checkbox" value="{$vo.id}"></td>
                    <td>{$Think.get.page?(($Think.get.page-1)*$Think.config.paginate.list_rows+$i):($i)}</td>
                    <td class="text-l">
                            <img onmouseover="layer_tips=layer.tips('<img src=__PUBLIC__/uploads/{$vo.image ?'image/'.$vo.image: 'sm_nopic.jpg'} class=\'layer_tips_img\'>',this,{tips: [1, '#fff']});" onmouseout="layer.close(layer_tips);"  src="__PUBLIC__/uploads/{$vo.image ?'image/'.$vo.image: 'sm_nopic.jpg'}" width="30px" height="30px"/>

                        <a href="{:url('index/ucase/detailed',['id'=>$vo.id,'navid'=>$vo.cid])}" target="_blank" title="查看{$vo.title}">
                        {$vo.title}
                        </a>
                    </td>
                    <td>
                       {$vo.sort|sortby=$vo.id}
                    </td>
                    <!-- <td>
                        <img onmouseover="layer_tips=layer.tips('<img src=__PUBLIC__/uploads/{$vo.image ?'image/'.$vo.image: 'sm_nopic.jpg'} class=\'layer_tips_img\'>',this,{tips: [1, '#fff']});" onmouseout="layer.close(layer_tips);"  src="__PUBLIC__/uploads/{$vo.image ?'image/'.$vo.image: 'sm_nopic.jpg'}" width="30px" height="30px"/>
                    </td> -->
                    <td>
                        <a href="{$vo.url}" target="_blank" >查看</a>
                    </td>
                    <td>
                        {$vo.status|status=$vo.id}
                    </td>
                    <td class="hidden-xs">
                        {$vo.create_time}
                    </td>
                    <td class="td-manage">
                        <a style="text-decoration:none" class="btn radius btn-xs btn-success"
                           onClick="edit('编辑','{:url(\''.\\think\\Request::instance()->controller().'/edit',['id'=>$vo.id])}','10001')"
                           href="javascript:;"
                           title="编辑">编辑</a>
                        <!--<a style="text-decoration:none" class="btn radius btn-xs btn-danger"-->
                           <!--onClick="del_old(this,'{:url(\''.\\think\\Request::instance()->controller().'/del',['id'=>$vo.id])}','10001')"-->
                           <!--href="javascript:;"-->
                           <!--title="删除">删除</a>-->
                        <a style="text-decoration:none" class="btn radius btn-xs btn-danger"
                           onClick="del('{:url(\''.\\think\\Request::instance()->controller().'/del')}',{$vo.id})"
                           href="javascript:;"
                           title="删除">删除</a>
                    </td>
                </tr>
            {/volist}
            </tbody>
        </table>
    </div>
    </form>
        {$list->render()}
</div>
{/block}